package com.androidcourse.shounews.Entity;

import androidx.annotation.NonNull;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class CommonNews {
    private String id;
    private String title;
    private String author;
    private String time;
    private String contentUrl;
    private String imgUrl;
    public CommonNews() {
    }

    public CommonNews(String id, String title, String author, String time, String contentUrl, String imgUrl) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.time = time;
        this.contentUrl = contentUrl;
        this.imgUrl = imgUrl;
    }

    @Override
    public String toString() {
        return "CommonNews{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", time='" + time + '\'' +
                ", contentUrl='" + contentUrl + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContentUrl() {
        return contentUrl;
    }

    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public CommonNews(String title, String author, String time) {
        this.title = title;
        this.author = author;
        this.time = time;
    }

    public CommonNews(String title, String author, String time, String contentUrl, String imgUrl) {
        this.title = title;
        this.author = author;
        this.time = time;
        this.contentUrl = contentUrl;
        this.imgUrl = imgUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
